//
//  MeCollectionViewCell.swift
//  Beadhouse
//
//  Created by Apple on 2018/10/27.
//  Copyright © 2018年 wangdong. All rights reserved.
//

import UIKit
import SnapKit
class MeCollectionViewCell: UICollectionViewCell {
    var bgView = UIView()
    var titleLabel = UILabel()
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.addSubview(bgView)
        bgView.snp.makeConstraints { (make) in
            make.height.width.equalToSuperview()
        }
        bgView.addSubview(titleLabel)
        titleLabel.textAlignment = NSTextAlignment.center
        titleLabel.snp.makeConstraints { (make) in
            make.height.equalTo(30)
            make.width.equalToSuperview()
            make.center.equalToSuperview()
        }
    }
}
